class BrandInfoM {
  BrandInfoM({
      required this.id,
      required this.brandCode,
      required this.brandName,
      required this.brandLogo,
      required this.serviceQq,
      required this.serviceEmail,
      required this.servicePhone,
      required this.serviceAgreementUrl,
      required this.payAgreementUrl,
      required this.privacyAgreementUrl,
      required this.isNeedDeposit,
      required this.isOpenWechatDeray,
      required this.isOpenPrelicensing,
      required this.customerServiceUrl,
      required this.deposit,
      required this.slogan,
      required this.brandIcon,
      required this.companyName,
      required this.isShareRealinfo,
      required this.smsSource,
      required this.isHomeMap,
      required this.payType,
      required this.paySourceArea,
      required this.smsChannel,
      required this.smsSignName,
      required this.realNameChannel,
      required this.realNameApiAppId,
      required this.realNameApiKey,
      required this.realNameFaceChannel,
      required this.realNameFaceKey,
      required this.realNameFaceAppId,
      required this.realNameFaceType,
      required this.extraConf,
      required this.idcardBindNum,
      required this.currentOrderNum,
      required this.notForceRealName,
      required this.faceidCheck,
      required this.selfSms,
      required this.mixedPay,
      required this.combinationPay,
      required this.discountFacePrice,
      required this.isDiscountFace,
    this.configs,
      required this.channel,});

  BrandInfoM.fromJson(dynamic json) {
    id = json['id'];
    brandCode = json['brand_code'];
    brandName = json['brand_name'];
    brandLogo = json['brand_logo'];
    serviceQq = json['service_qq'];
    serviceEmail = json['service_email'];
    servicePhone = json['service_phone'];
    serviceAgreementUrl = json['service_agreement_url'];
    payAgreementUrl = json['pay_agreement_url'];
    privacyAgreementUrl = json['privacy_agreement_url'];
    isNeedDeposit = json['is_need_deposit'];
    isOpenWechatDeray = json['is_open_wechat_deray'];
    isOpenPrelicensing = json['is_open_prelicensing'];
    customerServiceUrl = json['customer_service_url'];
    deposit = json['deposit'];
    slogan = json['slogan'];
    brandIcon = json['brand_icon'];
    companyName = json['company_name'];
    isShareRealinfo = json['is_share_realinfo'];
    smsSource = json['sms_source'];
    isHomeMap = json['is_home_map'];
    payType = json['pay_type'];
    paySourceArea = json['pay_source_area'];
    smsChannel = json['sms_channel'];
    smsSignName = json['sms_sign_name'];
    realNameChannel = json['real_name_channel'];
    realNameApiAppId = json['real_name_api_app_id'];
    realNameApiKey = json['real_name_api_key'];
    realNameFaceChannel = json['real_name_face_channel'];
    realNameFaceKey = json['real_name_face_key'];
    realNameFaceAppId = json['real_name_face_app_id'];
    realNameFaceType = json['real_name_face_type'];
    extraConf = json['extra_conf'];
    idcardBindNum = json['idcard_bind_num'];
    currentOrderNum = json['current_order_num'];
    notForceRealName = json['not_force_real_name'];
    faceidCheck = json['faceid_check'];
    selfSms = json['self_sms'];
    mixedPay = json['mixed_pay'];
    combinationPay = json['combination_pay'];
    discountFacePrice = json['discount_face_price'];
    isDiscountFace = json['is_discount_face'];
    configs = json['configs'] != null ? Configs.fromJson(json['configs']) : null;
    channel = json['channel'];
  }
  late num id;
  late String brandCode;
  late String brandName;
  late String brandLogo;
  late String serviceQq;
  late String serviceEmail;
  late String servicePhone;
  late String serviceAgreementUrl;
  late String payAgreementUrl;
  late String privacyAgreementUrl;
  late num isNeedDeposit;
  late num isOpenWechatDeray;
  late num isOpenPrelicensing;
  late String customerServiceUrl;
  late num deposit;
  late String slogan;
  late String brandIcon;
  late String companyName;
  late num isShareRealinfo;
  late String smsSource;
  late num isHomeMap;
  late num payType;
  late num paySourceArea;
  late String smsChannel;
  late String smsSignName;
  late String realNameChannel;
  late String realNameApiAppId;
  late String realNameApiKey;
  late String realNameFaceChannel;
  late String realNameFaceKey;
  late String realNameFaceAppId;
  late String realNameFaceType;
  late String extraConf;
  late num idcardBindNum;
  late num currentOrderNum;
  late num notForceRealName;
  late num faceidCheck;
  late num selfSms;
  late num mixedPay;
  late num combinationPay;
  late num discountFacePrice;
  late num isDiscountFace;
  late Configs? configs;
  late num channel;
BrandInfoM copyWith({
  num? id,
  String? brandCode,
  String? brandName,
  String? brandLogo,
  String? serviceQq,
  String? serviceEmail,
  String? servicePhone,
  String? serviceAgreementUrl,
  String? payAgreementUrl,
  String? privacyAgreementUrl,
  num? isNeedDeposit,
  num? isOpenWechatDeray,
  num? isOpenPrelicensing,
  String? customerServiceUrl,
  num? deposit,
  String? slogan,
  String? brandIcon,
  String? companyName,
  num? isShareRealinfo,
  String? smsSource,
  num? isHomeMap,
  num? payType,
  num? paySourceArea,
  String? smsChannel,
  String? smsSignName,
  String? realNameChannel,
  String? realNameApiAppId,
  String? realNameApiKey,
  String? realNameFaceChannel,
  String? realNameFaceKey,
  String? realNameFaceAppId,
  String? realNameFaceType,
  String? extraConf,
  num? idcardBindNum,
  num? currentOrderNum,
  num? notForceRealName,
  num? faceidCheck,
  num? selfSms,
  num? mixedPay,
  num? combinationPay,
  num? discountFacePrice,
  num? isDiscountFace,
  Configs? configs,
  num? channel,
}) => BrandInfoM(  id: id ?? this.id,
  brandCode: brandCode ?? this.brandCode,
  brandName: brandName ?? this.brandName,
  brandLogo: brandLogo ?? this.brandLogo,
  serviceQq: serviceQq ?? this.serviceQq,
  serviceEmail: serviceEmail ?? this.serviceEmail,
  servicePhone: servicePhone ?? this.servicePhone,
  serviceAgreementUrl: serviceAgreementUrl ?? this.serviceAgreementUrl,
  payAgreementUrl: payAgreementUrl ?? this.payAgreementUrl,
  privacyAgreementUrl: privacyAgreementUrl ?? this.privacyAgreementUrl,
  isNeedDeposit: isNeedDeposit ?? this.isNeedDeposit,
  isOpenWechatDeray: isOpenWechatDeray ?? this.isOpenWechatDeray,
  isOpenPrelicensing: isOpenPrelicensing ?? this.isOpenPrelicensing,
  customerServiceUrl: customerServiceUrl ?? this.customerServiceUrl,
  deposit: deposit ?? this.deposit,
  slogan: slogan ?? this.slogan,
  brandIcon: brandIcon ?? this.brandIcon,
  companyName: companyName ?? this.companyName,
  isShareRealinfo: isShareRealinfo ?? this.isShareRealinfo,
  smsSource: smsSource ?? this.smsSource,
  isHomeMap: isHomeMap ?? this.isHomeMap,
  payType: payType ?? this.payType,
  paySourceArea: paySourceArea ?? this.paySourceArea,
  smsChannel: smsChannel ?? this.smsChannel,
  smsSignName: smsSignName ?? this.smsSignName,
  realNameChannel: realNameChannel ?? this.realNameChannel,
  realNameApiAppId: realNameApiAppId ?? this.realNameApiAppId,
  realNameApiKey: realNameApiKey ?? this.realNameApiKey,
  realNameFaceChannel: realNameFaceChannel ?? this.realNameFaceChannel,
  realNameFaceKey: realNameFaceKey ?? this.realNameFaceKey,
  realNameFaceAppId: realNameFaceAppId ?? this.realNameFaceAppId,
  realNameFaceType: realNameFaceType ?? this.realNameFaceType,
  extraConf: extraConf ?? this.extraConf,
  idcardBindNum: idcardBindNum ?? this.idcardBindNum,
  currentOrderNum: currentOrderNum ?? this.currentOrderNum,
  notForceRealName: notForceRealName ?? this.notForceRealName,
  faceidCheck: faceidCheck ?? this.faceidCheck,
  selfSms: selfSms ?? this.selfSms,
  mixedPay: mixedPay ?? this.mixedPay,
  combinationPay: combinationPay ?? this.combinationPay,
  discountFacePrice: discountFacePrice ?? this.discountFacePrice,
  isDiscountFace: isDiscountFace ?? this.isDiscountFace,
  configs: configs ?? this.configs,
  channel: channel ?? this.channel,
);
  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['id'] = id;
    map['brand_code'] = brandCode;
    map['brand_name'] = brandName;
    map['brand_logo'] = brandLogo;
    map['service_qq'] = serviceQq;
    map['service_email'] = serviceEmail;
    map['service_phone'] = servicePhone;
    map['service_agreement_url'] = serviceAgreementUrl;
    map['pay_agreement_url'] = payAgreementUrl;
    map['privacy_agreement_url'] = privacyAgreementUrl;
    map['is_need_deposit'] = isNeedDeposit;
    map['is_open_wechat_deray'] = isOpenWechatDeray;
    map['is_open_prelicensing'] = isOpenPrelicensing;
    map['customer_service_url'] = customerServiceUrl;
    map['deposit'] = deposit;
    map['slogan'] = slogan;
    map['brand_icon'] = brandIcon;
    map['company_name'] = companyName;
    map['is_share_realinfo'] = isShareRealinfo;
    map['sms_source'] = smsSource;
    map['is_home_map'] = isHomeMap;
    map['pay_type'] = payType;
    map['pay_source_area'] = paySourceArea;
    map['sms_channel'] = smsChannel;
    map['sms_sign_name'] = smsSignName;
    map['real_name_channel'] = realNameChannel;
    map['real_name_api_app_id'] = realNameApiAppId;
    map['real_name_api_key'] = realNameApiKey;
    map['real_name_face_channel'] = realNameFaceChannel;
    map['real_name_face_key'] = realNameFaceKey;
    map['real_name_face_app_id'] = realNameFaceAppId;
    map['real_name_face_type'] = realNameFaceType;
    map['extra_conf'] = extraConf;
    map['idcard_bind_num'] = idcardBindNum;
    map['current_order_num'] = currentOrderNum;
    map['not_force_real_name'] = notForceRealName;
    map['faceid_check'] = faceidCheck;
    map['self_sms'] = selfSms;
    map['mixed_pay'] = mixedPay;
    map['combination_pay'] = combinationPay;
    map['discount_face_price'] = discountFacePrice;
    map['is_discount_face'] = isDiscountFace;
    if (configs != null) {
      map['configs'] = configs!.toJson();
    }
    map['channel'] = channel;
    return map;
  }

}

class Configs {
  Configs({
      required this.autoReturnBikeTime,
      required this.codeServer,
      required this.combinationPay,
      required this.dashboardConfig,
      required this.discountFacePrice,
      required this.forcePayAfter,
      required this.homePattern,
      required this.imagesPathPrefix,
      required this.isAutoReturnBikeSms,
      required this.isAutoTemporaryLockSms,
      required this.isForceRealName,
      required this.isFourWheel,
      required this.isMockFlag,
      required this.isOpenCreditStore,
      required this.isOpenNegativeBalance,
      required this.isOpenServerCharge,
      required this.isOrderApplySms,
      required this.isOutOfRangeSms,
      required this.jdPay,
      required this.maxAge,
      required this.miniappSingleLogin,
      required this.mixedPay,
      required this.mobileLogin,
      required this.needWechatLink,
      required this.passwordLogin,
      required this.payAfter,
      required this.shanghuAdAppid,
      required this.smsCallBack,
      required this.smsLogin,
      required this.tcpServer,
      required this.themeColor,});

  Configs.fromJson(dynamic json) {
    autoReturnBikeTime = json['auto_return_bike_time']??'';
    codeServer = json['code_server']??'';
    combinationPay = json['combination_pay']??'';
    dashboardConfig = json['dashboard_config']??'';
    discountFacePrice = json['discount_face_price']??'';
    forcePayAfter = json['force_pay_after']??'';
    homePattern = json['home_pattern']??'';
    imagesPathPrefix = json['images_path_prefix']??'';
    isAutoReturnBikeSms = json['is_auto_return_bike_sms']??'';
    isAutoTemporaryLockSms = json['is_auto_temporary_lock_sms']??'';
    isForceRealName = json['is_force_real_name']??'';
    isFourWheel = json['is_four_wheel']??'';
    isMockFlag = json['is_mock_flag']??'';
    isOpenCreditStore = json['is_open_credit_store']??'';
    isOpenNegativeBalance = json['is_open_negative_balance']??'';
    isOpenServerCharge = json['is_open_server_charge']??'';
    isOrderApplySms = json['is_order_apply_sms']??'';
    isOutOfRangeSms = json['is_out_of_range_sms']??'';
    jdPay = json['jd_pay']??'';
    maxAge = json['max_age']??'';
    miniappSingleLogin = json['miniapp_single_login']??'';
    mixedPay = json['mixed_pay']??'';
    mobileLogin = json['mobile_login']??'';
    needWechatLink = json['need_wechat_link']??'';
    passwordLogin = json['password_login']??'';
    payAfter = json['pay_after']??'';
    shanghuAdAppid = json['shanghu_ad_appid']??'';
    smsCallBack = json['sms_call_back']??'';
    smsLogin = json['sms_login']??'';
    tcpServer = json['tcp_server']??'';
    themeColor = json['theme_color']??'';
  }
  late String autoReturnBikeTime;
  late String codeServer;
  late String combinationPay;
  late String dashboardConfig;
  late String discountFacePrice;
  late String forcePayAfter;
  late String homePattern;
  late String imagesPathPrefix;
  late String isAutoReturnBikeSms;
  late String isAutoTemporaryLockSms;
  late String isForceRealName;
  late String isFourWheel;
  late String isMockFlag;
  late String isOpenCreditStore;
  late String isOpenNegativeBalance;
  late String isOpenServerCharge;
  late String isOrderApplySms;
  late String isOutOfRangeSms;
  late String jdPay;
  late String maxAge;
  late String miniappSingleLogin;
  late String mixedPay;
  late String mobileLogin;
  late String needWechatLink;
  late String passwordLogin;
  late String payAfter;
  late String shanghuAdAppid;
  late String smsCallBack;
  late String smsLogin;
  late String tcpServer;
  late String themeColor;
Configs copyWith({
  String? autoReturnBikeTime,
  String? codeServer,
  String? combinationPay,
  String? dashboardConfig,
  String? discountFacePrice,
  String? forcePayAfter,
  String? homePattern,
  String? imagesPathPrefix,
  String? isAutoReturnBikeSms,
  String? isAutoTemporaryLockSms,
  String? isForceRealName,
  String? isFourWheel,
  String? isMockFlag,
  String? isOpenCreditStore,
  String? isOpenNegativeBalance,
  String? isOpenServerCharge,
  String? isOrderApplySms,
  String? isOutOfRangeSms,
  String? jdPay,
  String? maxAge,
  String? miniappSingleLogin,
  String? mixedPay,
  String? mobileLogin,
  String? needWechatLink,
  String? passwordLogin,
  String? payAfter,
  String? shanghuAdAppid,
  String? smsCallBack,
  String? smsLogin,
  String? tcpServer,
  String? themeColor,
}) => Configs(  autoReturnBikeTime: autoReturnBikeTime ?? this.autoReturnBikeTime,
  codeServer: codeServer ?? this.codeServer,
  combinationPay: combinationPay ?? this.combinationPay,
  dashboardConfig: dashboardConfig ?? this.dashboardConfig,
  discountFacePrice: discountFacePrice ?? this.discountFacePrice,
  forcePayAfter: forcePayAfter ?? this.forcePayAfter,
  homePattern: homePattern ?? this.homePattern,
  imagesPathPrefix: imagesPathPrefix ?? this.imagesPathPrefix,
  isAutoReturnBikeSms: isAutoReturnBikeSms ?? this.isAutoReturnBikeSms,
  isAutoTemporaryLockSms: isAutoTemporaryLockSms ?? this.isAutoTemporaryLockSms,
  isForceRealName: isForceRealName ?? this.isForceRealName,
  isFourWheel: isFourWheel ?? this.isFourWheel,
  isMockFlag: isMockFlag ?? this.isMockFlag,
  isOpenCreditStore: isOpenCreditStore ?? this.isOpenCreditStore,
  isOpenNegativeBalance: isOpenNegativeBalance ?? this.isOpenNegativeBalance,
  isOpenServerCharge: isOpenServerCharge ?? this.isOpenServerCharge,
  isOrderApplySms: isOrderApplySms ?? this.isOrderApplySms,
  isOutOfRangeSms: isOutOfRangeSms ?? this.isOutOfRangeSms,
  jdPay: jdPay ?? this.jdPay,
  maxAge: maxAge ?? this.maxAge,
  miniappSingleLogin: miniappSingleLogin ?? this.miniappSingleLogin,
  mixedPay: mixedPay ?? this.mixedPay,
  mobileLogin: mobileLogin ?? this.mobileLogin,
  needWechatLink: needWechatLink ?? this.needWechatLink,
  passwordLogin: passwordLogin ?? this.passwordLogin,
  payAfter: payAfter ?? this.payAfter,
  shanghuAdAppid: shanghuAdAppid ?? this.shanghuAdAppid,
  smsCallBack: smsCallBack ?? this.smsCallBack,
  smsLogin: smsLogin ?? this.smsLogin,
  tcpServer: tcpServer ?? this.tcpServer,
  themeColor: themeColor ?? this.themeColor,
);
  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['auto_return_bike_time'] = autoReturnBikeTime;
    map['code_server'] = codeServer;
    map['combination_pay'] = combinationPay;
    map['dashboard_config'] = dashboardConfig;
    map['discount_face_price'] = discountFacePrice;
    map['force_pay_after'] = forcePayAfter;
    map['home_pattern'] = homePattern;
    map['images_path_prefix'] = imagesPathPrefix;
    map['is_auto_return_bike_sms'] = isAutoReturnBikeSms;
    map['is_auto_temporary_lock_sms'] = isAutoTemporaryLockSms;
    map['is_force_real_name'] = isForceRealName;
    map['is_four_wheel'] = isFourWheel;
    map['is_mock_flag'] = isMockFlag;
    map['is_open_credit_store'] = isOpenCreditStore;
    map['is_open_negative_balance'] = isOpenNegativeBalance;
    map['is_open_server_charge'] = isOpenServerCharge;
    map['is_order_apply_sms'] = isOrderApplySms;
    map['is_out_of_range_sms'] = isOutOfRangeSms;
    map['jd_pay'] = jdPay;
    map['max_age'] = maxAge;
    map['miniapp_single_login'] = miniappSingleLogin;
    map['mixed_pay'] = mixedPay;
    map['mobile_login'] = mobileLogin;
    map['need_wechat_link'] = needWechatLink;
    map['password_login'] = passwordLogin;
    map['pay_after'] = payAfter;
    map['shanghu_ad_appid'] = shanghuAdAppid;
    map['sms_call_back'] = smsCallBack;
    map['sms_login'] = smsLogin;
    map['tcp_server'] = tcpServer;
    map['theme_color'] = themeColor;
    return map;
  }

}